home *** CD-ROM | disk | FTP | other *** search
/ PC Home 48 / Fun Clicp Art 5000.iso / r / mbm8 / 00692_MTR fact.ls < prev    next >
Encoding:
Text File  |  1996-06-10  |  5.2 KB  |  200 lines

  1. factory FBestiole
  2. method mnew NNom, CCode, SStatut, NNumPar, CCodeZoom, CCodePhyl, EEpoque
  3.   instance Nom, Code, Statut, NumPar, CodeZoom, CodePhyl, Epoque
  4.   set Nom to NNom
  5.   set Code to CCode
  6.   set Statut to SStatut
  7.   set NumPar to NNumPar
  8.   set CodeZoom to CCodeZoom
  9.   set CodePhyl to CCodePhyl
  10.   set Epoque to EEpoque
  11.  
  12. method Le_Nom
  13.   return Nom
  14.  
  15. method Le_Code
  16.   return Code
  17.  
  18. method Le_Statut
  19.   return Statut
  20.  
  21. method Le_NumPar
  22.   return NumPar
  23.  
  24. method Le_CodeZoom
  25.   return CodeZoom
  26.  
  27. method Le_CodePhyl
  28.   return CodePhyl
  29.  
  30. method Le_Epoque
  31.   return Epoque
  32.  
  33. factory FGereCheckBox
  34. method appuie NumSpr
  35.   curseur(2)
  36.   set numact to the castNum of sprite NumSpr
  37.   set ancnom to the name of cast numact
  38.   set prefixe to word 2 of ancnom
  39.   set nomact to word 1 of ancnom
  40.   if char 1 of prefixe = "1" then
  41.     put " 0" after nomact
  42.   else
  43.     put " 1" after nomact
  44.   end if
  45.   set the castNum of sprite NumSpr to the number of cast nomact
  46.   updateStage()
  47.  
  48. factory FBarreChrono
  49. method fleche mode, dat, coul
  50.   if (coul = 0) or (coul = 1) then
  51.     set debut to coul
  52.     set fin to coul
  53.   else
  54.     set debut to 0
  55.     set fin to 1
  56.   end if
  57.   repeat with i = debut to fin
  58.     set monSpr to 46 + i
  59.     puppetSprite(monSpr, 1)
  60.     if mode = 0 then
  61.       set the visible of sprite monSpr to 0
  62.       next repeat
  63.     end if
  64.     set locx to 543 - (dat * 7.20000000000000018)
  65.     set numact to 131 + i
  66.     set the locH of sprite monSpr to locx
  67.     set the visible of sprite monSpr to 1
  68.   end repeat
  69.  
  70. method survol NumSpr, NumActTxt
  71.   global gTraduit
  72.   set numact to the castNum of sprite NumSpr
  73.   set dat to word 1 of the name of cast numact
  74.   set eta to word 2 of the name of cast numact
  75.   if eta = "1" then
  76.     set mess to getAt(gTraduit, 15)
  77.     set monCur to 7
  78.   else
  79.     set mess to getAt(gTraduit, 16)
  80.     set monCur to 7
  81.   end if
  82.   if dat > 1 then
  83.     set mess to mess && dat && getAt(gTraduit, 17)
  84.   else
  85.     if dat = 1 then
  86.       set mess to mess && getAt(gTraduit, 18)
  87.     end if
  88.     if dat = 0.20000000000000001 then
  89.       set mess to mess && "200" && getAt(gTraduit, 19)
  90.     end if
  91.     if dat = 0.035 then
  92.       set mess to mess && "35" && getAt(gTraduit, 19)
  93.     end if
  94.   end if
  95.   me(fleche, 1, dat, 1)
  96.   set the text of cast NumActTxt to " "
  97.   set the textStyle of cast NumActTxt to "plain"
  98.   set the textStyle of cast NumActTxt to "bold"
  99.   set the text of cast NumActTxt to mess
  100.   curseur(monCur)
  101.  
  102. factory FFScope
  103. method mnew act, Spr, lePath
  104.   instance exitFrame, exitFrame, exitFrame, exitFrame, exitFrame, exitFrame, exitFrame, exitFrame, exitFrame, exitFrame, exitFrame, exitFrame, exitFrame, exitFrame, exitFrame, exitFrame, exitFrame, exitFrame, exitFrame, CDPath, exitFrame, exitFrame, exitFrame, exitFrame, exitFrame, exitFrame, exitFrame, exitFrame, exitFrame, exitFrame, exitFrame, exitFrame, SprAct, exitFrame, CastAct
  105.   set CastAct to act
  106.   set SprAct to Spr
  107.   puppetSprite(SprAct, 1)
  108.   set the castNum of sprite SprAct to CastAct
  109.   set CDPath to lePath
  110.   set the visible of sprite SprAct to 0
  111.   me(Box, 1, 1, 1, 1)
  112.  
  113. method Restore
  114.   puppetSprite(SprAct, 1)
  115.   set the castNum of sprite SprAct to CastAct
  116.  
  117. method ToStage OnOff
  118.   set the directToStage of cast CastAct to OnOff
  119.  
  120. method preLoad laTaille, leVasY
  121.   if (1024 * laTaille) > the freeBlock then
  122.     set the preloadRam to the freeBlock
  123.     put "LIMITE MEMOIRE : " && laTaille && "Ko demand┼╜s," && the preloadRam / 1024 && "Ko accord┼╜s"
  124.   else
  125.     set the preloadRam to integer(1024 * laTaille)
  126.     put "Preload : " && the preloadRam / 1024 && "Ko allou┼╜s"
  127.   end if
  128.   if laTaille < 1 then
  129.     set the preLoad of cast CastAct to 0
  130.   else
  131.     set the preLoad of cast CastAct to 1
  132.   end if
  133.   if leVasY = 1 then
  134.     preLoadCast(CastAct)
  135.   end if
  136.  
  137. method SetTime laPos
  138.   set the movieTime of sprite SprAct to laPos
  139.  
  140. method GetTime
  141.   return the movieTime of sprite SprAct
  142.  
  143. method Box x1, y1, x2, y2
  144.   spriteBox(SprAct, x1, y1, x2, y2)
  145.  
  146. method visible leMode, leToTheFrame
  147.   set the visible of sprite SprAct to leMode
  148.   if leToTheFrame then
  149.     go(the frame)
  150.   end if
  151.  
  152. method SetCadence laCadcence
  153.   set the movieRate of sprite SprAct to laCadcence
  154.   me(VolAbs)
  155.  
  156. method GetCadence
  157.   return the movieRate of sprite SprAct
  158.  
  159. method unLoad
  160.   me(SetCadence, 0)
  161.   me(visible, 0)
  162.   me(Box, 1, 1, 1, 1)
  163.   me(preLoad, 0.10000000000000001, 0)
  164.   unLoadCast(CastAct)
  165.  
  166. method VolRel lePrCent
  167.   set monVol to the volume of sprite SprAct
  168.   set monVol to monVol + (lePrCent * monVol / 100)
  169.   set the volume of sprite SprAct to monVol
  170.  
  171. method VolAbs
  172.   global gVolVid
  173.   if the sound of cast CastAct = 1 then
  174.     set the volume of sprite SprAct to gVolVid
  175.   end if
  176.  
  177. method Duree
  178.   return the duration of cast CastAct
  179.  
  180. factory FGereBouton
  181. method appuie leNumSpr
  182.   curseur(2)
  183.   if leNumSpr > 0 then
  184.     set nomact to word 1 of the name of cast the castNum of sprite leNumSpr
  185.     put " 0" after nomact
  186.     set the castNum of sprite leNumSpr to the number of cast nomact
  187.     updateStage()
  188.   end if
  189.  
  190. method relache leNumSpr
  191.   if leNumSpr > 0 then
  192.     set nomact to word 1 of the name of cast the castNum of sprite leNumSpr
  193.     put " 1" after nomact
  194.     set the castNum of sprite leNumSpr to the number of cast nomact
  195.     updateStage()
  196.   end if
  197.  
  198. method habille NumSpr, nomact
  199.   set the castNum of sprite NumSpr to the number of cast nomact
  200.